package com.jisf.driver.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jisf.driver.entity.dto.CoachListRequestDto;
import com.jisf.driver.entity.po.Coach;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jisf.driver.entity.po.User;
import com.jisf.driver.entity.vo.CoachMessageVo;
import com.jisf.driver.entity.vo.CourseCoachVo;
import com.jisf.driver.entity.vo.ExamineCoachResponseVo;
import com.jisf.driver.entity.vo.UserListRequestVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jisf
 * @since 2022-05-06
 */
public interface CoachMapper extends BaseMapper<Coach> {

    List<CourseCoachVo> getHaveAppointCoach(CoachListRequestDto coachListRequestDto, Page page);

    List<CourseCoachVo> getAllCoach(CoachListRequestDto coachListRequestDto, Page page);

    List<ExamineCoachResponseVo> getExamineAllCoach();

    List<ExamineCoachResponseVo> getExamineCoach(Integer id);

    CoachMessageVo getMessage(Integer userid);

    List<CoachMessageVo> allCoach(UserListRequestVo userListRequestVo, Page<User> page);

}
